<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE circuit>
<circuit access="public" xmlns:cf="cf/">


	<!-- SECURITY FUSEACTIONS -->
	<fuseaction name="login">
		<xfa name="next" value="app.authenticate" />
		<xfa name="alreadyIn" value="app.userManager" />
		<!-- ((IsDefined('session.oUser')) AND (session.oUser.getIsAuthenticated())) -->
		<if condition="(Len(Trim(GetAuthUser())) GT 0)">
			<true>
				<relocate url="#variables.myself##XFA.alreadyIn#" />
			</true>
			<false>
				<do action="display.login" contentvariable="variables.ccvContent" />
				<do action="standardLayouts" />
			</false>
		</if>
	</fuseaction>
	<fuseaction name="authenticate">
		<xfa name="success" value="app.userManager" />
		<xfa name="fail" value="app.login" />
		<do action="security.auth" />
		<if condition="session.oUser.getIsAuthenticated() EQ true">
			<true>
				<relocate url="#variables.myself##XFA.success#" />
			</true>
			<false>
				<do action="app.login" />
			</false>
		</if>
	</fuseaction>
	<fuseaction name="logout">
		<do action="security.deauth" />
		<do action="app.login" />
	</fuseaction>
	<!-- / SECURITY FUSEACTIONS -->


	<!-- REVENEA SCREENS -->
	<fuseaction name="userManager">
		<do action="display.userManager" contentvariable="variables.ccvContent" />
		<do action="standardLayouts" />
	</fuseaction>
	<!-- / REVENEA SCREENS -->


	<!-- LAYOUT ASSISTS -->
	<fuseaction name="standardLayouts">
		<if condition="Len(Trim(GetAuthUser())) GT 0">
			<true><do action="layout.navigation" contentvariable="variables.ccvNavigation" /></true>
			<false><set name="variables.ccvNavigation" value="" /></false>
		</if>
		<do action="layout.standard" contentvariable="variables.ccvBase" />
		<do action="layout.base" />
	</fuseaction>
	<!-- / LAYOUT ASSISTS -->


	<!-- DEVELOPMENT ONLY -->
	<fuseaction name="sessionInfo">
		<do action="display.sessionInfo" contentvariable="variables.ccvContent" />
		<do action="standardLayouts" />
	</fuseaction>


</circuit>